import { TableColumnType } from "ant-design-vue"

export const ytdColumns: TableColumnType<DataType>[] = [
    {
        title: '客户',
        dataIndex: 'Client',
        key: 'Client',
        align:"center"
    },
    {
        title: '量产软硬一体',
        dataIndex: 'HardAndSoft',
        key: 'HardAndSoft',
        align:"center"
    },
    {
        title: '量产软件',
        dataIndex: 'Soft',
        key: 'Soft',
        align:"center"
    },
    {
        title: 'OTP',
        dataIndex: 'Otp',
        key: 'Otp',
        align:"center"
    },
    {
        title: '其他',
        dataIndex: 'Others',
        key: 'Others',
        align:"center"
    },
    {
        title: '总计',
        dataIndex: 'Total',
        key: 'Total',
        align:"center"
    },
]

export interface DataType {
    Id?:number
    key?:number
    Client: string,
    HardAndSoft: number,
    Soft: number,
    Otp: number,
    Others: number,
    Total: number,
}

export const ytdData:DataType[] = [
    {
        Id:1,
        key:1,
        Client: '广汽',
        HardAndSoft: 2,
        Soft: 3,
        Otp: 1175,
        Others: 0,
        Total: 1179,
    },
    {
        Id:2,
        key:2,
        Client: '奇瑞',
        HardAndSoft: 79,
        Soft: 0,
        Otp: 0,
        Others: 0,
        Total: 79,
    },
    {
        Id:3,
        key:3,
        Client: '东风',
        HardAndSoft: 8,
        Soft: 0,
        Otp: 0,
        Others: 0,
        Total: 8,
    },
    {
        Id:4,
        key:4,
        Client: '其他',
        HardAndSoft: 0,
        Soft: 0,
        Otp: 0,
        Others: 142,
        Total: 142,
    },
    
    {
        Id:5,
        key:5,

        Client: '总计',
        HardAndSoft: 89,
        Soft: 3,
        Otp: 1175,
        Others: 142,
        Total: 1409,
    },
]